package org.assistant.common.jdbc.dao;

import javax.sql.DataSource;

import org.assistant.common.jdbc.core.JdbcTemplate;
import org.assistant.common.jdbc.datasource.DataSourceFactory;

public class BasicDao {
	private JdbcTemplate jdbcTemplate;

	public BasicDao() {
		DataSource dataSource = DataSourceFactory.getInstace().getDataSource();
		this.jdbcTemplate = new JdbcTemplate(dataSource);
	}

	public JdbcTemplate getJdbcTemplate() {
		return jdbcTemplate;
	}

	public void setJdbcTemplate(JdbcTemplate jdbcTemplate) {
		this.jdbcTemplate = jdbcTemplate;
	}
}
